

import './index.html';
import './index.less';
import dva from 'dva';
import React, { PropTypes } from 'react';
import { Router, Route, IndexRoute, Link } from 'dva/router';


// 1. Initialize
const app = dva();

// 2. Plugins
//app.use({});

// 3. Model

// 一键发布子系统开始
app.model(require('./transfer/models/transferFiles'));
// 一键发布子系统结束


var routes = require('./router')
  // 4. Router
app.router(({ history }) => (
  <Router history = { history } routes = { routes } />
));

// 5. Start
app.start('#root');